<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%raexin_check_log}}".
 *
 * @property int $id
 * @property string $service_url
 * @property string $bank_id
 * @property string $app_id
 * @property string $acc_no
 * @property string $private_key
 * @property string $icbc_public_key
 * @property string $msg_id
 * @property string $req_data
 * @property string $resp_data
 * @property string $resp_code
 * @property string $resp_type
 * @property string $resp_msg
 * @property int $created_at
 */
class RaexinCheckLog extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%raexin_check_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['service_url', 'bank_id', 'app_id', 'acc_no', 'msg_id', 'created_at'], 'required'],
            [['private_key', 'icbc_public_key', 'req_data', 'resp_data', 'resp_msg'], 'string'],
            [['created_at'], 'integer'],
            [['service_url'], 'string', 'max' => 200],
            [['bank_id', 'app_id', 'msg_id'], 'string', 'max' => 50],
            [['acc_no'], 'string', 'max' => 30],
            [['resp_code', 'resp_type'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'service_url' => Yii::t('app', 'Service Url'),
            'bank_id' => Yii::t('app', 'Bank ID'),
            'app_id' => Yii::t('app', 'App ID'),
            'acc_no' => Yii::t('app', 'Acc No'),
            'private_key' => Yii::t('app', 'Private Key'),
            'icbc_public_key' => Yii::t('app', 'Icbc Public Key'),
            'msg_id' => Yii::t('app', 'Msg ID'),
            'req_data' => Yii::t('app', 'Req Data'),
            'resp_data' => Yii::t('app', 'Resp Data'),
            'resp_code' => Yii::t('app', 'Resp Code'),
            'resp_type' => Yii::t('app', 'Resp Type'),
            'resp_msg' => Yii::t('app', 'Resp Msg'),
            'created_at' => Yii::t('app', 'Created At'),
        ];
    }
}
